/*
 * SonarQube
 * Copyright (C) 2009-2017 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
@import (reference) "../variables";
@import (reference) "../mixins";

.processes-container {
  position: fixed;
  z-index: @process-container-z-index;
  top: 0;
  left: 50%;
  width: 350px;
  margin-left: -175px;
}

.process-spinner {
  position: relative;
  padding: 0 10px;
  line-height: @formControlHeight;
  border-radius: 0 0 3px 3px;
  box-sizing: border-box;
  background-color: #f0e8ac;
  text-align: center;
  opacity: 0;
  transition: all 0.2s ease;

  &.shown { opacity: 1; }
}

.process-spinner + .process-spinner {
  margin-top: 5px;
  border-radius: 3px;
}

.process-spinner-failed {
  padding-right: 30px;
  background-color: @red;
  color: @white;
}

.process-spinner-success {
  padding-right: 30px;
  background-color: @green;
  color: @white;
}

.process-spinner-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px;
  background: none !important;
  border: none !important;
  line-height: 1;
  color: #fff;
}



.shortcuts-section {

}

.shortcuts-section + .shortcuts-section {
  margin-top: 20px;
}

.shortcuts-section-title {
  margin-bottom: 5px;
}

.shortcuts-list {
  > li + li {
    margin-top: 5px;
  }
}

.shortcut-button {
  display: inline-block;
  min-width: 24px;
  height: 24px;
  line-height: 21px;
  padding: 0 4px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-image: linear-gradient(to bottom, #f5f5f5, #eee);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 #ccc;
  color: @secondFontColor;
  font-size: 11px;
  text-align: center;
}

.shortcut-button-small {
  min-width: 16px;
  height: 16px;
  line-height: 14px;
  margin-left: 4px;
  margin-right: 4px;
}


.nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav > li {
  position: relative;
  display: block;
}

.nav > li > a {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  padding: 10px 15px;
}


.nav-crumbs {
  padding: 2px 0;

  a {
    color: @baseFontColorLight;

    &:hover, &:focus {
      color: @blue !important;
    }
  }

  > li {
    font-size: 15px;
    font-weight: 400;
  }

  > li + li:before {
    content: "/";
    float: left;
    padding: 4px 0;
    color: fade(@baseFontColor, 30%);
  }

  [class^="icon-"], [class*=" icon-"] {
    position: relative;
    top: 3px;
  }
}

.nav-tabs {
  padding-top: 1px;
  border-bottom: 1px solid @barBorderColor;

  > li {
    float: left;
    margin-bottom: -1px;
  }

  > li > a {
    padding-top: 2px;
    padding-bottom: 2px;
    margin-right: 2px;
    border-bottom: 3px solid transparent;
    color: @baseFontColorLight;

    &:hover {
      border-color: @blue;
    }
  }

  > li.active > a,
  > li > a.active {
    border-color: @blue;
  }
}

.nav-pills {
  & > ul {
    display: flex;
    flex-wrap: wrap;

    & > li > a {
      display: inline-block;
      vertical-align: middle;
      padding: 3px 10px;
      border: 1px solid transparent;
      border-radius: 24px;
      color: @darkBlue;
      transition: none;

      &:hover {
        border-color: @darkBlue;
      }
    }

    & > li.active > a,
    & > li > a.active {
      background-color: @darkBlue;
      color: #fff;
    }
  }
}


.flash {
  background-color: transparent;
  transition: all 0.5s ease;

  &.in {
    background-color: #fcf8e3;
  }
}

.flash-heavy.in {
  background-color: #ffe456;
}


.identity-provider {
  display: inline-block;
  line-height: 14px;
  padding: 3px 5px;
  border-radius: 3px;
  font-size: @smallFontSize;
  color: #fff;
}
